<template>
  <div>
    <h2>{{ title }}</h2>
    <v-chart :forceFit="true" :height="height" :data="data" :scale="scale">
      <v-tooltip />
      <v-axis />
      <v-bar position="hostname*num" />
    </v-chart>
  </div>
</template>

<script>


const scale = [
  {
    dataKey: 'num',
  },
]

export default {
  name: 'LeakAssetBar',
  data() {
    return {
      title: '漏洞资产Top5',
      scale,
      height: 300,
    }
  },
  props:{
    data:[]
  }
}
</script>
